<div data-am-widget="tabs" class="am-tabs am-tabs-default">
    <ul class="am-tabs-nav am-cf">
        <li class="am-active"><a href="#">总数、比数、五行</a></li>
        <li class=""><a href="#">正码</a></li>
    </ul>
    <div class="am-tabs-bd">
        <div data-tab-panel-0 class="am-tab-panel am-active">
            <table class="zonghe container">
                <thead>
                    <tr>
                        <th colspan="4">总和、总和过关</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
            <table class="qhh container">
                <thead>
                    <tr>
                        <th colspan="3">前后和</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
            <table class="dsh container">
                <thead>
                    <tr>
                        <th colspan="3">单双和</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
            <table class="wuxing container">
                <thead>
                    <tr>
                        <th colspan="5">五行</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <div data-tab-panel-1 class="am-tab-panel ">
            <table class="zhengma container">
                <thead>
                    <tr>
                        <th colspan="4">正码</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
    </div>
    
    <button class="save am-btn-xl am-btn-primary">保存</button>
</div>

<script>
    var types = ["大", "小", "单", "双"];
    var table = $(".zonghe tbody");
    table.empty();
    var tr = $("<tr></tr>");
    for (var i = 0; i < types.length; i++) {
        AdminLimit.add('和' + types[i], '总和' + types[i], tr);
    }
    table.append(tr);
    var tr = $("<tr></tr>");
    AdminLimit.add('和810', '总和810', tr);
    for (var i = 0; i < 3; i++) tr.append("<td> </td>");
    table.append(tr);

    var types = ["大单", "大双", "小单", "小双"];
    var tr = $("<tr></tr>");
    for (var i = 0; i < types.length; i++) {
        AdminLimit.add('和' + types[i], '总' + types[i], tr);
    }
    table.append(tr);

    var table = $(".qhh tbody");
    table.empty();
    var tr = $("<tr></tr>");
    AdminLimit.add('前', '前（多）', tr); 
    AdminLimit.add('后', '后（多）', tr); 
    AdminLimit.add('中', '前后（和）', tr);
    table.append(tr);

    var table = $(".dsh tbody");
    table.empty();
    var tr = $("<tr></tr>");
    AdminLimit.add('单', '单（多）', tr);
    AdminLimit.add('双', '双（多）', tr);
    AdminLimit.add('平', '单双（和）', tr);
    table.append(tr);

    var types = ['金', '木', '水', '火', '土'];
    var table = $(".wuxing tbody");
    table.empty();
    var tr = $("<tr></tr>");
    for (var i in types) {
        AdminLimit.add(types[i], types[i], tr);
    }
    table.append(tr);

    var table = $(".zhengma tbody");
    table.empty();
    var tr = $("<tr></tr>");
    AdminLimit.add('正', '正码1-80', tr);
    table.append(tr);
</script>

<style type="text/css">
    .zonghe .rate, .qhh .rate, .dsh .rate { width: 140px; }
    .zhengma .rate { width: 200px; }
</style>
